#pragma once

#include <iostream>
#include <thread>
#include <boost/asio.hpp>
#include <netinet/in.h>
#include <ifaddrs.h>
#include <hiredis/hiredis.h>
#include "RedisCli.h"
extern "C" {
#include "../element/syncd/include/sln_nlink.h"
#include "../element/sln/include/sln_add.h"
}

using namespace boost::asio;
using ip::tcp;

extern std::string SERVER_IP;
extern std::string GUANLIAN_IP;
extern std::string RENZHENG_IP;

class Server

{
public:
	static void handleClient(tcp::socket& socket);
	static void ListenAndStore();
	static void Delete();
	static void Connect();
	static void Recept();
	static void ListenCidBackRid();
	static void ListenRidBackCid();
	static void ListenCidBackMid();
	static void ListenRidBackMid();
};

